﻿
//Author: 张亚涛
//createtime:2011-10-13 10:35:35
//Description:

using System;
using System.Data;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using Model;
using NS.DAL.Systems;


namespace DAL
{
    /// <summary>
    /// 该类提供了一系列操作 "CouponsScheme" 表的方法;
    /// </summary>
    public partial class CouponsSchemeBase
    {
        #region .SQL语句汇总.
        /// <summary>
        /// 返回CouponsScheme表的所有数据 （SQL语句）
        /// </summary>
        /// <param name="CouponName">洗车券名称</param>
        /// <param name="OldPrice">原价</param>
        /// <param name="PrePrice">折扣价</param>
        /// <returns></returns>        
        public static string GetAllCouponsScheme_SQL(string CouponName, string OldPrice, string PrePrice)
        {
            string strSQL = SQL_Select + " where 1=1 ";
            if (!string.IsNullOrEmpty(CouponName))
            {
                strSQL += " and CouponName = '" + CouponName + "'";
            }
            if (!string.IsNullOrEmpty(OldPrice))
            {
                strSQL += " and OldPrice = '" + OldPrice + "'";
            }
            if (!string.IsNullOrEmpty(PrePrice))
            {
                strSQL += " and PrePrice = '" + PrePrice + "'";
            }

            return strSQL;
        }
        #endregion
    }
}
